<template>
	<div id="contentBox">
		<div class="searchBox">
			<el-form :inline="true"  ref="searchForm"  :model="searchForm" label-width="96px">
	            <el-form-item label="订单号" prop="name1" >
				    <el-input v-model="searchForm.name1" placeholder="请输入搜索内容..." @input.native="seachData"></el-input >
				</el-form-item>
				<el-form-item label="经销商名称" prop="name1" >
				    <el-input v-model="searchForm.name1" placeholder="请输入搜索内容..." @input.native="seachData"></el-input >
				</el-form-item>
				<el-form-item label="汽车类型" prop="name1" >
				    <el-input v-model="searchForm.name1" placeholder="请输入搜索内容..." @input.native="seachData"></el-input >
				</el-form-item>
				
				<el-form-item label="申请日期起" prop="startDate">
				    <el-date-picker :editable="false"  
				      @change="seachData"
				      v-model="searchForm.startDate"
				      type="date"
				      placeholder="选择日期"
				      :picker-options="startDateOpt">
				    </el-date-picker>
				</el-form-item>
				<el-form-item label="申请日期止" prop="endDate">
				    <el-date-picker :editable="false"  
				      @change="seachData"
				      v-model="searchForm.endDate"
				      type="date"
				      placeholder="选择日期"
				      :picker-options="endDateOpt">
				    </el-date-picker>
				</el-form-item>
				<el-form-item label="请求状态" prop="name3">
				   <el-select v-model="searchForm.name" placeholder="请选择搜索内容..." @change="seachData">
				      <el-option label="区域一" value="shanghai"></el-option>
				      <el-option label="区域二" value="beijing"></el-option>
				    </el-select>
				</el-form-item>

				<el-form-item style="    margin-bottom: 10px;">
				    <el-button type="primary" @click="seachData('searchForm')">搜索</el-button>
				    <el-button @click="resetSearchForm('searchForm')">重置</el-button>
				</el-form-item>
			</el-form>
		</div>
		<div id="tableBox" style="margin:0 25px;" >
			<el-table :data="tableData.data" border  >
			    <el-table-column label="订单号" width="140">
			      <template scope="scope">
			        <span >{{ scope.row.qcpp }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="经销商名称" >
			      <template scope="scope">
			        <span >{{ scope.row.qczpp }}</span>
			      </template>
			    </el-table-column>
			    
			    <el-table-column label="汽车车型" >
			      <template scope="scope">
			        <span >{{ scope.row.qccxx }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="垫资金额" >
			      <template scope="scope">
			        <span >{{ scope.row.qccx }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="经销商开户状态" >
			      <template scope="scope">
			        <span >{{ scope.row.qccx }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="申请日期" >
			      <template scope="scope">
			        <span >{{ scope.row.qccx }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="借款请求状态" >
			      <template scope="scope">
			        <span >{{ scope.row.qccx }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="操作" width="140">
			      <template scope="scope">
			      	<el-button size="small" @click="handleSee(scope.$index, scope.row)">查看</el-button>
			      	<!-- <el-button size="small" @click="handleEdit(scope.$index, scope.row,true)">编辑</el-button> -->
			      </template>
			    </el-table-column>
			</el-table>
            <el-dialog v-if="dialogSendData.dialogFormVisible" title="申请借款单管理" :visible.sync="dialogSendData.dialogFormVisible"  :lock-scroll='false' top=5% :close-on-click-modal="false"    :closeOnPressEscape="false">
				<dialogForm :dialogSendData="dialogSendData" :tableData="tableData" v-on:refreshTableData="seachData()"></dialogForm>
				
			</el-dialog>
	    </div>
	    <div class="block" style="text-align: center;margin-top: 15px;">
		    <pagination v-on:refreshSeachData="seachData()"  :tableData="tableData" :searchForm="searchForm"></pagination>
		</div>
	</div>
</template>
<script src="./index.js">

</script>
<style scoped lang="stylus" rel="styleheet/stylus">
	@import './index.styl';
</style>